function [start_time, stop_time, varargout] = eval_time_select(varargin)
% EVAL_TIME_SELECT Application M-file for eval_time_select.fig
%    FIG = EVAL_TIME_SELECT launch eval_time_select GUI.
%    EVAL_TIME_SELECT('callback_name', ...) invoke the named callback.

% Last Modified by GUIDE v2.0 21-Aug-2003 23:19:30


if nargin == 0  % LAUNCH GUI

	fig = openfig(mfilename,'reuse');

	% Use system color scheme for figure:
	set(fig,'Color',get(0,'defaultUicontrolBackgroundColor'));

	% Generate a structure of handles to pass to callbacks, and store it. 
	handles = guihandles(fig);
	guidata(fig, handles);

    %  Wait for values to be entered and window to be dismissed
    uiwait(fig);
    %  After window is dismissed set values for pass back and delete window
    handles = guidata(fig);
	start_time = handles.start_time;
    stop_time = handles.stop_time;
	delete(fig);

	if nargout > 0
		varargout{1} = fig;
	end

elseif ischar(varargin{1}) % INVOKE NAMED SUBFUNCTION OR CALLBACK

	try
		if (nargout)
			[varargout{1:nargout}] = feval(varargin{:}); % FEVAL switchyard
		else
			feval(varargin{:}); % FEVAL switchyard
		end
	catch
		disp(lasterr);
	end

end


% --------------------------------------------------------------------
function varargout = StartTime_edittext_Callback(h, eventdata, handles, varargin)


% --------------------------------------------------------------------
function varargout = StopTime_edittext_Callback(h, eventdata, handles, varargin)


% --------------------------------------------------------------------
function varargout = Ok_pushbutton_Callback(h, eventdata, handles, varargin)

handles.start_time = str2num(get(handles.StartTime_edittext,'String'));
handles.stop_time = str2num(get(handles.StopTime_edittext,'String'));
guidata(h,handles);
uiresume(handles.EvalTimeSelect);
